import java.util.Scanner;
import static java.lang.Math.*;

class Person{
    private String name;
    private int age;
    public double height;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    double weight;  //即default 默认权限
    public void eat(){
        System.out.println(name+"在吃饭");
    }
    public void study(){
        System.out.println(name+"在学编程");
    }

}
class Student{
    String name;
    int age;
   static  String  classroom="高三20班";
   public  static void play(){
      // show();
       System.out.println("打游戏");
   }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void show() {
        System.out.println("姓名 "+name+" 年龄 "+age+" 班级 "+classroom);
    }

    public static void main(String[] args) {
        play();
    }
}
public class Text {
    public static void main(String[] args) {
        Student student1=new Student("张三",17);
        Student student2=new Student("李四",17);
        Student student3=new Student("王五",17);

        System.out.println(Student.classroom);

       /* student1.show();
        student2.show();
        student3.show();
*/

    }
    public static void main1(String[] args) {
        Scanner sc=new Scanner(System.in);
       double x=3;
       double y=4;
       //double result=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
        double result=sqrt(pow(x,2)+pow(y,2));
        System.out.println(result);
    }

}
